package model.geometry;

/**
 * Created by andreas on 19.04.14.
 */
public class VerticalDrawer extends AbstractDrawer {

    public String drawAsterixVertical(int size) {
        return drawAsterixVertical(0, size, "");
    }

    private String drawAsterixVertical(int i, int size, String accumulator) {
        if (i == size) {
            return accumulator;
        } else {
            final String newLine = i < size - 1 ? "\n" : "";
            return drawAsterixVertical(i + 1, size, accumulator + "*" + newLine);
        }
    }

}
